﻿using Bot.Domain.Entities;
using Comm100.Framework.Domain.Specifications;
using System;
using System.Collections.Generic;
using System.Text;

namespace Bot.Domain.Specifications
{
    public class DialogflowFilterSpecification : BaseSpecification<Dialogflow>
    {
        public DialogflowFilterSpecification(int siteId, Guid botId)
            : base(i => i.SiteId == siteId && i.BotId == botId)
        {

        }
        public DialogflowFilterSpecification(bool isTest)
            : base(i => i.SiteId <= 0 && i.IsTestAccount == isTest)
        {

        }

        public DialogflowFilterSpecification(string projectId)
           : base(i => i.ProjectId == projectId)
        {

        }
    }
}
